html {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}
*:before, *:after {
  box-sizing: inherit;
}

body {
  overflow: hidden;
  height: 100vh;
  background: linear-gradient(180deg, #09283d, #1b415c, #29516c, #6e8ea5, #7cadd0, #7cadd0, #7cadd0, #7cadd0, #6e8ea5, #3a6583, #1a4461, #09283d);
  background-size: 2400% 2400%;
  animation: dayNight 60s ease infinite;
}

@keyframes dayNight {
  0%, 100% {
    background-position: 25% 0;
  }
  50% {
    background-position: 76% 100%;
  }
}
@keyframes road-moving {
  to {
    transform: translate(-2400px);
  }
}
@keyframes wheelsRotation {
  to {
    transform: rotate(360deg);
  }
}
@keyframes moon {
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translate(80px, -140px);
  }
}
@keyframes sun-moon {
  to {
    transform: rotate(1turn);
  }
}
@keyframes driving {
  0% {
    left: -25%;
  }
  10% {
    bottom: 0;
  }
  20% {
    transform: scale(0.5) rotateZ(-5deg);
    bottom: 5%;
  }
  25% {
    transform: scale(0.5) rotateZ(0);
  }
  40% {
    transform: scale(0.5) rotateZ(5deg);
  }
  50% {
    transform: scale(0.5) rotateZ(0);
  }
  100% {
    left: 110%;
    bottom: 10%;
    transform: scale(0.5) rotateZ(0);
  }
}
.car {
  position: absolute;
  bottom: -10%;
  width: 430px;
  height: 300px;
  transform: scale(0.5);
  animation: driving 5s infinite linear;
}
.car::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3%;
  display: block;
  margin-top: 88px;
  width: 426px;
  height: 1px;
  box-shadow: 2px -15px 25px 2px #000;
  z-index: -1;
}
.car .bottom .wheel {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: gray;
  position: absolute;
  bottom: 0;
  border: 20px solid black;
  animation: wheelsRotation 1s linear infinite;
}
.car .bottom .wheel.wheel1 {
  left: 5%;
}
.car .bottom .wheel.wheel2 {
  right: 5%;
}
.car .bottom .wheel .dot {
  position: absolute;
  background: #000;
}
.car .bottom .wheel .dot1,
.car .bottom .wheel .dot2 {
  width: 10px;
  height: 25px;
}
.car .bottom .wheel .dot3,
.car .bottom .wheel .dot4 {
  width: 25px;
  height: 10px;
}
.car .bottom .wheel .dot1 {
  top: 10%;
  left: 45%;
}
.car .bottom .wheel .dot2 {
  bottom: 10%;
  left: 45%;
}
.car .bottom .wheel .dot3 {
  top: 45%;
  left: 10%;
}
.car .bottom .wheel .dot4 {
  top: 45%;
  right: 10%;
}
.car .bottom .wheel1-top,
.car .bottom .wheel2-top {
  position: absolute;
  bottom: 48px;
  width: 106px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0px 13px 3px 0 rgba(240, 240, 240, 0.53);
  transform: rotateX(180deg);
  z-index: 3;
}
.car .bottom .wheel1-top {
  left: 7%;
}
.car .bottom .wheel2-top {
  right: 7%;
}
.car .top1 {
  position: absolute;
  top: 0;
  left: 4%;
  width: 250px;
  height: 130px;
  background: #6a1621;
  border-radius: 25% 40% 0 0;
  max-width: 100%;
}
.car .top1::after {
  content: "";
  position: absolute;
  bottom: -63px;
  right: -168px;
  z-index: 10;
  width: 13px;
  height: 37px;
  background: #baccda;
  border-radius: 10px;
  border: 2px solid #000;
  transform: rotate(-15deg);
  border-left-style: none;
}
.car .top1 .window {
  position: absolute;
  width: 40%;
  height: 60%;
  background: #e2f0f6;
  border-radius: 5px;
  border: 9px solid #bf6d7b;
  margin: 17px;
}
.car .top1 .window1 {
  left: 0;
  border-top-left-radius: 30%;
}
.car .top1 .window2 {
  right: 0;
  border-top-right-radius: 50%;
}
.car .top2 {
  position: absolute;
  bottom: 20%;
  width: 430px;
  height: 140px;
  background: #9c2535;
  border-radius: 100px 200px 0 0;
}
.car .top2::after {
  content: "";
  position: absolute;
  bottom: 7px;
  right: -340px;
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 80px solid transparent;
  border-right: 500px solid rgba(191, 188, 87, 0.7);
  z-index: -1;
  -webkit-mask-box-image: linear-gradient(to right, black, transparent);
  transform: rotate(-9deg);
}
.car .top2 .door {
  position: absolute;
  top: 16px;
  left: 36%;
  width: 110px;
  height: 100px;
  border-radius: 10% 40% 10% 10%;
  border: 3px solid #b57a84;
}
.car .top2 .door .knob {
  position: absolute;
  top: 5%;
  left: 20%;
  width: 30px;
  height: 14px;
  background: #e8e6e6;
  border-radius: 30%;
  border: 1px solid lightcoral;
}

.road {
  position: absolute;
  bottom: 0;
  width: 250%;
  height: 200px;
  background: #585858;
  border-top: 10px solid #756d6d;
  border-bottom: 20px solid #756d6d;
  margin-left: -10px;
}
.road::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -17px;
  left: 0;
  right: 0;
  border: 5px solid #000;
}
.road .road-top-half {
  position: absolute;
  top: 30px;
  left: -10%;
  width: 250%;
  height: 15px;
  border-top: 40px dashed white;
  margin-top: 25px;
  transition: all 3s linear;
  animation: road-moving 10s infinite linear;
}

.skyline {
  position: absolute;
  bottom: 205px;
  left: 110%;
  width: 100%;
  transition: all 8s linear;
  animation: road-moving 10s infinite linear;
}
.skyline .building1 {
  position: relative;
  width: 220px;
  height: 450px;
  background: #211919;
}
.skyline .building1-shadow {
  position: absolute;
  left: -199px;
  width: 200px;
  height: 450px;
  border-top: 15px solid transparent;
  border-right: 60px solid rgb(44, 37, 37);
  border-bottom: 15px solid #000;
  border-left: 15px solid transparent;
}
.skyline .building1 .half {
  position: absolute;
  top: 10px;
  width: 50px;
  height: 300px;
  margin-top: 25px;
  border-left: 16px solid #a9d2c7;
  border-right: 16px dashed rgba(255, 255, 0, 0.19);
}
.skyline .building1 .half.left {
  left: 10px;
  padding: 25px;
}
.skyline .building1 .half.right {
  right: 10px;
  padding: 20px;
}

.moon {
  position: absolute;
  top: 30px;
  right: 370px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgb(207, 207, 212);
  margin: auto;
  box-shadow: 0 0 60px gold, 0 0 100px rgb(185, 160, 24), inset 0 5px 12px 26px #f5f5f5, inset -2px 8px 15px 36px #e6e6e6;
  transition: 1s;
  transform-origin: 50% 500px;
  animation: sun-moon 40s 2s linear infinite;
}